package com.lan.springbootdruid.mapper;

import com.lan.springbootdruid.entity.City;
import org.springframework.stereotype.Repository;

/**
 * @author: Lan
 * @date: 2019/5/6 11:29
 * @description:
 */
@Repository
public interface CityMapper {

    /**
     * 通过ID获取城市对象
     *
     * @param id
     * @return
     */
    City getCityById(int id);

    /**
     * 通过id修改城市名称
     *
     * @param id
     * @return
     */
    int updateCityName(int id);
}
